package com.example.stack;

/**
 * @className: Demo
 * @description: 栈-测试类
 * @author: LiuZhenHe
 * @date: 2024/01/12 16:40
 **/
public class Demo {
    public static void main(String[] args) {
        ArrayStack stack = new ArrayStack(3);
        stack.push(1);
        stack.push(2);
        stack.push(3);
//        stack.push(4);
//        System.out.println(stack.pop());
//        System.out.println(stack.pop());
//        System.out.println(stack.pop());
//        System.out.println(stack.pop());
//        stack.list();
        stack.list2();

    }
}
